package service;

import entity.User;
import exception.RequestParameterErrorException;
import exception.UserExistException;
import exception.UserNotExistException;

/**
 * Author:shixiaojun@itany.com
 * Date:2022/5/19 14:52
 * Version:1.0-SNAPSHOT
 * Description:
 */
public interface UserService {

    public User login(String username,String password) throws RequestParameterErrorException, UserNotExistException;

    public void register(String username,String password,String phone,String address) throws RequestParameterErrorException, UserExistException;

}
